import requests

# 单用户召回
response = requests.get(
    "http://localhost:5000/recommend",
    params={"user_id": 123, "item_id": 456}
)
print(response.json())

# 批量用户召回
batch_response = requests.post(
    "http://localhost:5000/batch_recommend",
    json={ "user_id": 2344, "item_ids": [123,456,789,3423,234],}
)
print(batch_response.json())